/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ticketmanager;

/**
 *
 * @author Viktor
 */
public class Ticket {
    private String rowID;
    private String title;
    private String status;
    private String solver;
    private String category;
    private String description;
    private Boolean fresh;
    private Boolean follow;

    public static final String FOLLOW_UP = "Follow Up";

    public void setFollow(Boolean follow) {
        this.follow = follow;
    }

    public Boolean getFollow() {
        return follow;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Boolean getFresh() {
        return fresh;
    }

    public void setFresh(Boolean fresh) {
        this.fresh = fresh;
    }

    public String getRowID() {
        return rowID;
    }

    public void setRowID(String rowID) {
        this.rowID = rowID;
    }

    public String getSolver() {
        return solver;
    }

    public void setSolver(String solver) {
        this.solver = solver;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Ticket other = (Ticket) obj;
        if ((this.rowID == null) ? (other.rowID != null) : !this.rowID.equals(other.rowID)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 97 * hash + (this.rowID != null ? this.rowID.hashCode() : 0);
        hash = 97 * hash + (this.title != null ? this.title.hashCode() : 0);
        hash = 97 * hash + (this.status != null ? this.status.hashCode() : 0);
        hash = 97 * hash + (this.solver != null ? this.solver.hashCode() : 0);
        hash = 97 * hash + (this.category != null ? this.category.hashCode() : 0);
        hash = 97 * hash + (this.description != null ? this.description.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "Ticket{" + "rowID=" + rowID + "title=" + title + "status=" + status + "solver=" + solver + "category=" + category + "description=" + description + "fresh=" + fresh + '}';
    }
}
